package base;

import java.util.ArrayList;
import java.util.List;

import impsoft.scripting.ibot.enums.Skill;
import impsoft.scripting.ibot.structs.AryanTile;

public class DreamUtils extends DreamUtility {

	public DreamUtils(DreamScript cs) {
		super(cs);
	}

	public int getPrayerPercentage() throws InterruptedException {
		int level = cs.theTabs.Statistics.getStatBottom(Skill.PRAYER);
		return level <= 0 ? 100 : (int) (100 * cs.theMiniMapIndicators.getPrayerPoints() / level);
	}

	public AryanTile[] getBox(AryanTile corner, int sides) {
		List<AryanTile> tiles = new ArrayList<AryanTile>();
		for (int i = 0; i < sides; i++) {
			for (int j = 0; j < sides; j++) {
				tiles.add(new AryanTile(corner.x + i, corner.y + j));
			}
		}

		return null;
	}
}
